@import "~common/css/_variables.scss";

.videos {
  width: 100%;
  height: 100%;
  overflow: hidden;

  .video_scroll {
    .video_box {
      // max-width: 1200px;
      max-width: 1020px;
      // min-width: 850px;
      margin: 0 auto;
      padding: 20px 30px;
    }
  }

  // 视频组件
  .video {}
}

// model box
.model {
  position: absolute;
  top: 35px;
  left: 0px;
}

// 热门标签
.hot_tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  margin: 0 0 20px;

  .all_list_text {
    width: 100px;
    height: 30px;
    line-height: 30px;
    border-radius: 40px;
    text-align: center;
    font-size: $fz12;
    cursor: pointer;
    border: 1px solid #e5e6ea;
    background-color: #fff;
  }

  ul {
    display: flex;

    li {
      position: relative;
      cursor: pointer;
      color: $c666;
      font-size: $fz12;
      padding: 4px 12px;
      border-radius: 10px;

      &.active {
        color: $color;
        background-color: $color1;
      }
    }
  }
}

// 标签弹窗
.video_tag {
  width: 540px;
  height: 400px;
  border-radius: 4px;
  background-color: #fff;
  // user-select: none;
  box-shadow: 0 0 8px 0 rgba($color: #000000, $alpha: 0.1);

  .title {
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    border-bottom: 1px solid #e5e6ea;
  }

  .scroll_box {
    width: 100%;
    height: calc(100% - 50px);

    .content {
      width: 100%;
      padding: 10px 20px;

      ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;

        li {
          position: relative;
          width: 84px;

          &:not(:nth-child(-n + 6)) {
            margin-top: -1px;
          }

          &:not(:nth-child(6n - 5)) {
            margin-left: -1px;
          }
        }
      }
    }

    .tag {
      text-align: center;
      line-height: 34px;
      cursor: pointer;
      border: 1px solid #e5e6ea;
      border-radius: 2px;
      font-size: $fz12;
      background-color: #fff;

      &:hover {
        z-index: 2;
        // border: 1px solid $color;
        background-color: #f5f5f7;
      }
    }

    .tagActive {
      z-index: 3;
      border: 1px solid $color;
      background: url("~common/images/choose_right.png") bottom right / 17px no-repeat;
    }

    .hotActive {
      &::before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("~common/images/hot.png") top 4px right 4px / 16px no-repeat;
      }
    }
  }
}

.arrow {
  position: relative;

  &::before {
    position: absolute;
    content: "";
    top: -10px;
    left: 24px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid rgba($color: #000000, $alpha: 0.1);
  }

  &::after {
    position: absolute;
    content: "";
    top: -9px;
    left: 24px;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid #fafafa;
  }
}

// 视频列表
.video_list {
  margin-bottom: 20px;

  ul {
    display: flex;
    flex-wrap: wrap;

    li {
      width: calc(25% - 23px);
      overflow: hidden;
      margin-bottom: 30px;

      &:not(:nth-child(4n)) {
        margin-right: 30px;
      }

      .img_box {
        position: relative;
        width: 100%;
        padding: 56% 0 0 0;
        border-radius: 6px;

        .count {
          position: absolute;
          top: 0;
          right: 0;
          font-size: $fz12;
          color: #fff;
          border-radius: 2px 0 0 2px;
          padding: 2px 5px 2px 60px;
          background: url("~common/images/local_layer.png") center center / 100% no-repeat;

          &::before {
            position: absolute;
            top: 0;
            left: 30px;
            content: "";
            width: 20px;
            height: 16px;
            background: url("~common/images/video.png") center center / 14px no-repeat;
          }
        }
      }

      .creator {
        p {
          margin-top: 10px;

          &:nth-child(1) {
            font-size: $fz14;
          }

          &:nth-child(2) {
            color: $c999;
            font-size: $fz12;
          }
        }
      }
    }
  }
}

// mv排行榜
.top_mv_list {
  ul {
    display: flex;
    flex-wrap: wrap;

    li {
      display: flex;
      align-items: center;

      width: 50%;
      padding: 20px 0;
      border-bottom: 1px solid #e5e6ea;

      &:nth-last-child(-n + 2) {
        border-bottom: none;
      }

      &:not(:nth-child(2n)) {
        border-right: 1px solid #e5e6ea;
      }

      .num {
        width: 50px;
        text-align: center;
        font-size: $fz24;
        color: $c888;
        font-family: "fangsong";
        font-style: italic;
        font-weight: 500;
      }

      .cover {
        position: relative;
        width: 160px;
        height: 90px;

        span {
          position: absolute;
          top: 0;
          right: 0;
          font-size: 12px;
          color: #fff;
          border-radius: 2px 0 0 2px;
          padding: 2px 5px 2px 60px;
          background: url("~common/images/local_layer.png") center center / 100% no-repeat;
        }
      }

      div {
        width: calc(100% - 210px);
        height: 100%;
        padding: 0 5px;

        p {
          width: 100%;
          margin-top: 10px;

          &:nth-child(1) {
            font-size: $fz14;
          }

          &:nth-child(2) {
            height: auto;
            color: $c888;
            font-size: $fz12;
          }
        }
      }
    }
  }
}